import request from '@/utils/request'

const api_name = '/eduservice/video'

export default {
  saveVideoInfo(videoInfo){
    return request({
      url: `${api_name}/saveVideoInfo`,
      method:'post',
      data: videoInfo
    })
  },
  getVideoInfo(id){
    return request({
      url: `${api_name}/videoInfo/${id}`,
      method:'get',
    })
  },
  updateVideoInfo(videoInfo){
    return request({
      url: `${api_name}/updateVideoInfo/${videoInfo.id}`,
      method:'put',
      data: videoInfo
    })
  },
  removeById(id){
    return request({
      url: `${api_name}/${id}`,
      method:'delete'
    })
  },
}
